package com.oamicnet.servicetwo.server.mq;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class BusEventListener {

    @EventListener
    public void onRefreshRemoteApplicationEvent(MyCustomEvent event) {
        // 这里可以写你自己的业务逻辑
        System.out.println("收到配置刷新事件，来源服务：" + event.getSource());
        System.out.println("事件内容：" + event.getMessage());
    }
}
